package com.whj.account.captcha;

import java.util.List;

public interface AccountCaptchaService {
    String generateCaptchaKey() throws AccountCaptchaException;
    byte[] generateCaptchaImage(String key) throws AccountCaptchaException;
    void validateCaptcha(String captchaKey, String captchaValue) throws AccountCaptchaException;

    List<String> getPredefinedTexts();
    void setPredefinedTexts(List<String> texts);
}
